<html>
<head>
<TITLE>Internal System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>

<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<script language="JavaScript" src="../js/calender.js" type="text/JavaScript"></script>

<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
	var theform = window.document.form1
	
	if (valid.isEmpty("name","merchant name")){
		return false;
	}else{
		return true;
	}
}
</script>

<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
  <table width="100%" cellspacing="0" cellpadding="2">
    <tr bgcolor="#E4E4E4"> 
      <td  width="20%">&nbsp;Edit Coupon</td>
      <td  width="70%"><font color="#FF0000">&nbsp;{$error_message}</font></td>
      <td  width="10%" align="right">&nbsp;<A href="{$backurl}" target="_self">Back</A>&nbsp;&nbsp;</td>
    </tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Merchant:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <select name="merchantID" id="merchantID">{html_options options=$arrMerchant selected=$merchantID}</select>
      &nbsp; <font color="#FF0000"> *</font> </td>
    </tr>
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td align="right">Category:</td>
      <td colspan="3">&nbsp;
      <label><select name="categoryID" id="categoryID">{html_options options=$arrCategories selected=$categoryID}</select></label>
        <font color="#FF0000"> *</font> </td>
    </tr>

   	<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Start Date:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="startDate" type="text" id="startDate" value="{$startDate}" size="20" maxlength="20" onKeyDown="SelectDate(this,'yyyy-MM-dd')" onFocus="SelectDate(this,'yyyy-MM-dd')"></td>
    </tr>
	<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Expire Date:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="expireDate" type="text" id="expireDate" value="{$expireDate}" size="20" maxlength="20" onKeyDown="SelectDate(this,'yyyy-MM-dd')" onFocus="SelectDate(this,'yyyy-MM-dd')"></td>
    </tr>
	<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Start Price:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="startPrice" type="text" id="startPrice" value="{$startPrice}" size="20" maxlength="80"></td>
    </tr>
	<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Code:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="code" type="text" id="code" size="60" value="{$code}" maxlength="200"></td>
    </tr>
	<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Amount:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="amount" type="text" id="amount" value="{$amount}" size="60" maxlength="250"></td>
    </tr>
	<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">URL:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="url" type="text" id="url" value="{$url}" size="60" maxlength="100">
      &nbsp;</td>
    </tr>
	<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Long Restr:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="longRestr" type="text" id="longRestr" value="{$longRestr}" size="60" maxlength="100">
      &nbsp;</td>
    </tr>
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Comments:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="comments" type="text" id="comments" value="{$comments}" size="60" maxlength="100">
      &nbsp;</td>
    </tr>
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Description:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        {$fckHtml}</td>
    </tr>
    
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td align="right">Is Featured:</td>
      <td colspan="2">{html_radios name="isFeatured" options=$arrIsFeatured checked=$isFeatured separator=" "} </td>
    </tr>
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td align="right">Is Free Shipping:</td>
      <td colspan="2">{html_radios name="isFreeShipping" options=$arrIsFreeShipping checked=$isFreeShipping separator=" "}
	  </td>
    </tr>
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td align="right">Is Free Gift:</td>
      <td colspan="2">{html_radios name="isFreeGift" options=$arrIsFreeGift checked=$isFreeGift separator=" "}
	  </td>
    </tr>
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td align="right">Is Free Sample:</td>
      <td colspan="2">{html_radios name="isFreeSample" options=$arrIsFreeSample checked=$isFreeSample separator=" "}
	  </td>
    </tr>
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td align="right">Is Clearance Sales:</td>
      <td colspan="2">{html_radios name="isClearanceSales" options=$arrIsClearanceSales checked=$isClearanceSales separator=" "}
	  </td>
    </tr>
     <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td align="right">Status:</td>
      <td colspan="3">{html_radios name="status" options=$arrStatus checked=$status separator=" "}
 	  <font color="#FF0000">*</font></td>
    </tr>
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
      <td height="23"></td>
      <td height="23" colspan="2">
        &nbsp;&nbsp;
        <input type="submit" name="Submit" value="Submit">
        <input type="reset" name="Reset" value="Reset">
        <input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
      <input name="menuid" type="hidden" id="menuid" value="{$menuid}">
      <input name="id" type="hidden" id="id" value="{$id}">
      <input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
    </tr>
  </table>
</form>
</body>
</html>